from .feishu import FeishuRobot

webhook = ""
fs = FeishuRobot(webhook=webhook)


class TestCase:
    def test_send_text(self):
        res = fs.send_text(text="你好，测试人")
        print(res.text)

    def test_send_post(self):
        content = [
            [
                {
                    "tag": "text",
                    "text": "新训练任务: "
                },
                {
                    "tag": "text",
                    "text": "测试",
                },
            ]
        ]
        res = fs.send_post(content=content, title="测试富文本")
        print(res.text)
